/* OVERLAY */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: flex-start;
  padding-top: 300px;
  justify-content: center;
  z-index: 999999;
}

/* POPUP BOX */
.popup-inner {
  background: #ffffff;/* #f5f0eb; /* warm cream - matches your site background */
  width: 600px;
  max-width: 92%;
  height: 280px;
  border-radius: 10px;
  position: relative;
  display: flex;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(0,0,0,0.3);
  padding: 0;
  box-sizing: border-box;
}

/* GOLDEN INSET BORDER */
.popup-inner::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 2px solid #a83d3d; /*#5a4539;   /* gold - exactly from your website buttons */
  border-radius: 8px;
  pointer-events: none;
}

/* WRAPPER */
.popup-content-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 5px;
  box-sizing: border-box;
}

/* CLOSE BUTTON */
.popup-close {
  position: absolute;
  top: 5px;
  right: 9px;
  font-size: 26px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #a83d3d;  /* charcoal - matches site headings */
  z-index: 10;
}

/* IMAGE SIDE */
.popup-image {
  flex: 0 0 45%;
  height: 100%;
  background: #f5f0eb;
}

.popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TEXT SIDE */
.popup-text {
  flex: 1;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #a83d3d; /* charcoal */
  background: #ffffff; /* cream */
  align-items: center;
  text-align: center;
}

/* TITLE */
.popup-text h2 {
  margin: 0 0 8px;
  color: #a83d3d; /* soft brown from your site typography */
  font-size: 1.25em;
  font-weight: 600;
  font-family: 'Playfair Display', serif;
}

/* PARAGRAPH */
.popup-text p {
  margin: 0;
  font-size: 1.15em;
  line-height: 1.75em;
  font-family: 'GeogrotesqueStencilMd', sans-serif;
  /* font-style: italic; */
  color: #a83d3d;
}

/* BUTTON */
.popup-button {
  background: #a83d3d;              /* your site gold button BG */
  color: #ffffff;                    /* your dark brown text tone */
  border: 1.5px solid #a83d3d;       /* matching outline */
  font-weight: 700;
  font-family: "Lora", serif;
  padding: 10px 0;
  width: 150px;
  font-size: 0.95em;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  text-decoration: none !important;
  white-space: nowrap;
}

.popup-button:hover {
  background: #b89654; /* slightly darker gold for hover */
  border-color: #4a3a2e;
  color: #4a3a2e;
  opacity: 1;
}

/* MOBILE */
@media (max-width: 768px) {
  .popup-inner {
    width: 90%;
    height: auto;
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
  }

  .popup-overlay {
    align-items: center !important;
    padding-top: 0 !important;
  }

  .popup-content-wrapper {
    flex-direction: column;
    padding: 5px;
  }

  .popup-image {
    flex: 0 0 auto;
    width: 100%;
    height: 200px;
  }

  .popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
  }

  .popup-text {
    flex: 1 0 auto;
    width: 100%;
    padding: 15px 20px;
    text-align: center;
  }

  .popup-text h2 {
    font-size: 1em;
  }

  .popup-text p {
    font-size: 0.95em;
    line-height: 1.5em;
  }

  .popup-button {
    margin: 15px auto 0 auto;
    width: 50%;
  }
}
